package dian.com.mvvmdemo.http

import dian.com.mvvmdemo.http.base.ResponseData
import dian.com.mvvmdemo.http.databean.loginData
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST


/*
 *
 *Created by QingDian_Fan on 2019/11/18
 * */
interface RequestService {

    @FormUrlEncoded
    @POST("user/login")
    suspend fun login(@Field("username") userName: String, @Field("password") passWord: String) : ResponseData<loginData>

}